<?php

namespace App\Http\Middleware;

use Closure;

class NewMiddleware
{
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        // if($request->input('age') <= 200) {
        //     return redirect('home');
        // }

        $response =  $next($request);
        echo '欢迎来到 new 中间件';
        return $response;
    }
}
